//
// The GUI for managing the recording
//

//Show the GUI or not
local ShowGUI = false

//Draw the GUI when it should be
function DrawGUI()
	if !ShowGUI then return false end
	
	//Prepare the text
	local Text = "GUI is still work in progress :V"
	surface.SetFont( "ScoreboardText" )
	local w, h = surface.GetTextSize( Text )
	
	//Draw it
	draw.RoundedBox( 8, 10, 10, w + 8, h + 8, Color( 0, 0, 0, 128 ) )
	draw.SimpleText( Text, "ScoreboardText", 14, 14, team.GetColor(LocalPlayer():Team()), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) 
end
hook.Add( "HUDPaint", "DrawGUI", DrawGUI )

//Console commands to toggle the GUI
concommand.Add( "+GA_GUI", function() ShowGUI = true end )
concommand.Add( "-GA_GUI", function() ShowGUI = false end )